package com.itheima.test03;

public class LambdaTest2 {
    public static void main(String[] args) {
//        StringHandler sh = name -> System.out.println(name);
        StringHandler sh = name -> System.out.println(name);
        sh.printMessage("李四");
    }
}
interface StringHandler{
    void printMessage(String name);
}
class StringHandlerDemo{
    static String name = "张三";
    void useStringHandler(StringHandler stringHandler){
        stringHandler.printMessage(name);
    }
}
